Skip to content

refactor: split create_providers into separate functions#3695

Merged
rickeylev merged 9 commits intobazel-contrib:mainfrom
rickeylev:refactor.providers.adding
Apr 13, 2026
Merged

refactor: split create_providers into separate functions#3695
rickeylev merged 9 commits intobazel-contrib:mainfrom
rickeylev:refactor.providers.adding

Conversation

@rickeylev
Copy link
Copy Markdown
Collaborator

The create_providers function was becoming unwieldy because it was
taking all the args for all the providers. Split it up into separate
functions to make it easier to see what args are going to what
providers and follow the provider creation logic.

@rickeylev rickeylev requested a review from aignas as a code owner April 12, 2026 02:36
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the provider creation logic in python/private/py_executable.bzl by decomposing the monolithic _create_providers function into several modular helper functions. This change improves the structure of py_executable_base_impl by calling these helpers sequentially. Feedback was provided to ignore the unused builtin_py_info return value in py_executable_base_impl to improve code clarity.

Comment thread python/private/py_executable.bzl Outdated
@rickeylev rickeylev enabled auto-merge April 13, 2026 04:33
@rickeylev rickeylev added this pull request to the merge queue Apr 13, 2026
Merged via the queue into bazel-contrib:main with commit 9a6be4c Apr 13, 2026
4 checks passed
@rickeylev rickeylev deleted the refactor.providers.adding branch April 13, 2026 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants